<?php
class cls_serve_base
{
	var $name;
	static function get_instance($class)
	{
		$cls = "cls_serve_{$class}";
		$instance = new $cls();
		$instance->name = $class;
		return $instance;
	}
	
/*	static function action($action)
	{
		$str = explode('.', $action, 2);
		$class = $str[0];
		$act = $str[1];
		$instance = self::get_instance($class);
		$instance->$act();
	}*/
}